﻿using AutoMapper;

namespace Core.Toolkit.Core.Entitys
{
    public static class EntityExtension
    {
        public static T ToDto<T>(this Entity entity) => Mapper.Map<T>(entity);
        
    }
}
